﻿namespace QLBanHang.Report
{
    using DevExpress.Utils;
    using DevExpress.XtraPrinting;
    using DevExpress.XtraReports.UI;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Drawing.Printing;

    public class repx_d_in_phieuxuatban : XtraReport
    {
        private BottomMarginBand BottomMargin;
        private IContainer components = null;
        private DetailBand Detail;
        public int iPrinted = 0;
        private PageHeaderBand PageHeader;
        private ReportFooterBand ReportFooter;
        private TopMarginBand TopMargin;
        private XRLabel xrLabel1;
        private XRLabel xrLabel10;
        private XRLabel xrLabel11;
        private XRLabel xrLabel12;
        private XRLabel xrLabel13;
        private XRLabel xrLabel14;
        private XRLabel xrLabel15;
        private XRLabel xrLabel16;
        private XRLabel xrLabel17;
        private XRLabel xrLabel18;
        private XRLabel xrLabel19;
        private XRLabel xrLabel2;
        private XRLabel xrLabel20;
        private XRLabel xrLabel21;
        private XRLabel xrLabel22;
        private XRLabel xrLabel23;
        private XRLabel xrLabel24;
        private XRLabel xrLabel25;
        private XRLabel xrLabel3;
        private XRLabel xrLabel4;
        private XRLabel xrLabel5;
        private XRLabel xrLabel6;
        private XRLabel xrLabel7;
        private XRLabel xrLabel8;
        private XRLabel xrLabel9;

        public repx_d_in_phieuxuatban()
        {
            this.InitializeComponent();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            XRSummary summary = new XRSummary();
            XRSummary summary2 = new XRSummary();
            XRSummary summary3 = new XRSummary();
            this.Detail = new DetailBand();
            this.xrLabel11 = new XRLabel();
            this.xrLabel7 = new XRLabel();
            this.xrLabel6 = new XRLabel();
            this.xrLabel5 = new XRLabel();
            this.xrLabel4 = new XRLabel();
            this.xrLabel17 = new XRLabel();
            this.TopMargin = new TopMarginBand();
            this.xrLabel9 = new XRLabel();
            this.xrLabel1 = new XRLabel();
            this.BottomMargin = new BottomMarginBand();
            this.xrLabel2 = new XRLabel();
            this.xrLabel10 = new XRLabel();
            this.xrLabel8 = new XRLabel();
            this.ReportFooter = new ReportFooterBand();
            this.xrLabel3 = new XRLabel();
            this.PageHeader = new PageHeaderBand();
            this.xrLabel16 = new XRLabel();
            this.xrLabel15 = new XRLabel();
            this.xrLabel14 = new XRLabel();
            this.xrLabel13 = new XRLabel();
            this.xrLabel12 = new XRLabel();
            this.xrLabel18 = new XRLabel();
            this.xrLabel19 = new XRLabel();
            this.xrLabel20 = new XRLabel();
            this.xrLabel21 = new XRLabel();
            this.xrLabel22 = new XRLabel();
            this.xrLabel23 = new XRLabel();
            this.xrLabel24 = new XRLabel();
            this.xrLabel25 = new XRLabel();
            this.BeginInit();
            this.Detail.Controls.AddRange(new XRControl[] { this.xrLabel11, this.xrLabel7, this.xrLabel6, this.xrLabel5, this.xrLabel4, this.xrLabel17 });
            this.Detail.HeightF = 45.99998f;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.Detail.TextAlignment = TextAlignment.TopLeft;
            this.xrLabel11.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrLabel11.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "chitiet.tenvitrikho") });
            this.xrLabel11.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrLabel11.LocationFloat = new PointFloat(3.178914E-05f, 22.99999f);
            this.xrLabel11.Name = "xrLabel11";
            this.xrLabel11.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel11.SizeF = new SizeF(508.9997f, 23f);
            this.xrLabel11.StylePriority.UseBorders = false;
            this.xrLabel11.StylePriority.UseFont = false;
            this.xrLabel11.Text = "xrLabel11";
            this.xrLabel7.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel7.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "chitiet.thanhtien", "{0:#,#}") });
            this.xrLabel7.LocationFloat = new PointFloat(406.9166f, 0f);
            this.xrLabel7.Name = "xrLabel7";
            this.xrLabel7.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel7.SizeF = new SizeF(102.0832f, 23f);
            this.xrLabel7.StylePriority.UseBorders = false;
            this.xrLabel7.StylePriority.UseTextAlignment = false;
            summary.FormatString = "{0:#,#}";
            this.xrLabel7.Summary = summary;
            this.xrLabel7.Text = "xrLabel7";
            this.xrLabel7.TextAlignment = TextAlignment.TopRight;
            this.xrLabel6.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel6.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "chitiet.dvt") });
            this.xrLabel6.LocationFloat = new PointFloat(217.7081f, 0f);
            this.xrLabel6.Name = "xrLabel6";
            this.xrLabel6.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel6.SizeF = new SizeF(48.95847f, 23f);
            this.xrLabel6.StylePriority.UseBorders = false;
            this.xrLabel6.Text = "xrLabel6";
            this.xrLabel5.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel5.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "chitiet.soluong") });
            this.xrLabel5.LocationFloat = new PointFloat(266.6667f, 0f);
            this.xrLabel5.Name = "xrLabel5";
            this.xrLabel5.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel5.SizeF = new SizeF(54.16669f, 23f);
            this.xrLabel5.StylePriority.UseBorders = false;
            summary2.FormatString = "{0:#,#}";
            this.xrLabel5.Summary = summary2;
            this.xrLabel5.Text = "xrLabel5";
            this.xrLabel4.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrLabel4.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "chitiet.tendp") });
            this.xrLabel4.LocationFloat = new PointFloat(0f, 0f);
            this.xrLabel4.Name = "xrLabel4";
            this.xrLabel4.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel4.SizeF = new SizeF(217.7081f, 23f);
            this.xrLabel4.StylePriority.UseBorders = false;
            this.xrLabel4.Text = "xrLabel4";
            this.xrLabel17.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel17.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "chitiet.giaban") });
            this.xrLabel17.LocationFloat = new PointFloat(320.8333f, 0f);
            this.xrLabel17.Name = "xrLabel17";
            this.xrLabel17.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel17.SizeF = new SizeF(86.08322f, 23f);
            this.xrLabel17.StylePriority.UseBorders = false;
            this.xrLabel17.Text = "xrLabel17";
            this.TopMargin.Controls.AddRange(new XRControl[] { this.xrLabel25, this.xrLabel24, this.xrLabel23, this.xrLabel22, this.xrLabel21, this.xrLabel20, this.xrLabel18, this.xrLabel9, this.xrLabel1, this.xrLabel19 });
            this.TopMargin.HeightF = 104.125f;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.TopMargin.TextAlignment = TextAlignment.TopLeft;
            this.xrLabel9.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "chitiet.sophieu") });
            this.xrLabel9.LocationFloat = new PointFloat(434.375f, 10.00001f);
            this.xrLabel9.Name = "xrLabel9";
            this.xrLabel9.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel9.SizeF = new SizeF(74.62506f, 23f);
            this.xrLabel9.Text = "xrLabel9";
            this.xrLabel1.Font = new Font("Times New Roman", 16f, FontStyle.Bold);
            this.xrLabel1.LocationFloat = new PointFloat(75f, 10.00001f);
            this.xrLabel1.Name = "xrLabel1";
            this.xrLabel1.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel1.SizeF = new SizeF(359.375f, 30.29167f);
            this.xrLabel1.StylePriority.UseFont = false;
            this.xrLabel1.StylePriority.UseTextAlignment = false;
            this.xrLabel1.Text = "PHIẾU XUẤT";
            this.xrLabel1.TextAlignment = TextAlignment.TopCenter;
            this.BottomMargin.Controls.AddRange(new XRControl[] { this.xrLabel2, this.xrLabel10 });
            this.BottomMargin.HeightF = 100.9583f;
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.BottomMargin.TextAlignment = TextAlignment.TopLeft;
            this.xrLabel2.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "chitiet.tennguoidangnhap") });
            this.xrLabel2.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel2.LocationFloat = new PointFloat(310.0418f, 62.74996f);
            this.xrLabel2.Name = "xrLabel2";
            this.xrLabel2.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel2.SizeF = new SizeF(198.958f, 28.20832f);
            this.xrLabel2.StylePriority.UseFont = false;
            this.xrLabel2.StylePriority.UseTextAlignment = false;
            this.xrLabel2.Text = "xrLabel2";
            this.xrLabel2.TextAlignment = TextAlignment.TopCenter;
            this.xrLabel10.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel10.LocationFloat = new PointFloat(310.0418f, 10.00001f);
            this.xrLabel10.Name = "xrLabel10";
            this.xrLabel10.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel10.SizeF = new SizeF(198.958f, 23f);
            this.xrLabel10.StylePriority.UseFont = false;
            this.xrLabel10.StylePriority.UseTextAlignment = false;
            this.xrLabel10.Text = "Người lập phiếu";
            this.xrLabel10.TextAlignment = TextAlignment.TopCenter;
            this.xrLabel8.Borders = BorderSide.All;
            this.xrLabel8.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel8.LocationFloat = new PointFloat(3.178914E-05f, 0f);
            this.xrLabel8.Name = "xrLabel8";
            this.xrLabel8.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel8.SizeF = new SizeF(406.9165f, 23f);
            this.xrLabel8.StylePriority.UseBorders = false;
            this.xrLabel8.StylePriority.UseFont = false;
            this.xrLabel8.Text = "Tổng cộng";
            this.ReportFooter.Controls.AddRange(new XRControl[] { this.xrLabel3, this.xrLabel8 });
            this.ReportFooter.HeightF = 25.08333f;
            this.ReportFooter.Name = "ReportFooter";
            this.xrLabel3.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Top;
            this.xrLabel3.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "chitiet.thanhtien") });
            this.xrLabel3.LocationFloat = new PointFloat(406.9166f, 0f);
            this.xrLabel3.Name = "xrLabel3";
            this.xrLabel3.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel3.SizeF = new SizeF(102.0834f, 23f);
            this.xrLabel3.StylePriority.UseBorders = false;
            this.xrLabel3.StylePriority.UseTextAlignment = false;
            summary3.FormatString = "{0:#,#}";
            summary3.Running = SummaryRunning.Report;
            this.xrLabel3.Summary = summary3;
            this.xrLabel3.Text = "xrLabel3";
            this.xrLabel3.TextAlignment = TextAlignment.TopRight;
            this.PageHeader.Controls.AddRange(new XRControl[] { this.xrLabel16, this.xrLabel15, this.xrLabel14, this.xrLabel13, this.xrLabel12 });
            this.PageHeader.HeightF = 23f;
            this.PageHeader.Name = "PageHeader";
            this.xrLabel16.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Top;
            this.xrLabel16.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel16.LocationFloat = new PointFloat(320.8333f, 0f);
            this.xrLabel16.Name = "xrLabel16";
            this.xrLabel16.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel16.SizeF = new SizeF(86.08319f, 23f);
            this.xrLabel16.StylePriority.UseBorders = false;
            this.xrLabel16.StylePriority.UseFont = false;
            this.xrLabel16.Text = "Đơn gi\x00e1";
            this.xrLabel15.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Top;
            this.xrLabel15.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel15.LocationFloat = new PointFloat(406.9166f, 0f);
            this.xrLabel15.Name = "xrLabel15";
            this.xrLabel15.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel15.SizeF = new SizeF(102.0833f, 23f);
            this.xrLabel15.StylePriority.UseBorders = false;
            this.xrLabel15.StylePriority.UseFont = false;
            this.xrLabel15.Text = "Th\x00e0nh tiền";
            this.xrLabel14.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Top;
            this.xrLabel14.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel14.LocationFloat = new PointFloat(217.7081f, 0f);
            this.xrLabel14.Name = "xrLabel14";
            this.xrLabel14.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel14.SizeF = new SizeF(48.9585f, 23f);
            this.xrLabel14.StylePriority.UseBorders = false;
            this.xrLabel14.StylePriority.UseFont = false;
            this.xrLabel14.Text = "ĐVT";
            this.xrLabel13.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Top;
            this.xrLabel13.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel13.LocationFloat = new PointFloat(266.6667f, 0f);
            this.xrLabel13.Name = "xrLabel13";
            this.xrLabel13.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel13.SizeF = new SizeF(54.16669f, 23f);
            this.xrLabel13.StylePriority.UseBorders = false;
            this.xrLabel13.StylePriority.UseFont = false;
            this.xrLabel13.Text = "SL";
            this.xrLabel12.Borders = BorderSide.All;
            this.xrLabel12.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel12.LocationFloat = new PointFloat(0f, 0f);
            this.xrLabel12.Name = "xrLabel12";
            this.xrLabel12.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel12.SizeF = new SizeF(217.7081f, 23f);
            this.xrLabel12.StylePriority.UseBorders = false;
            this.xrLabel12.StylePriority.UseFont = false;
            this.xrLabel12.Text = "T\x00ean sản phẩm";
            this.xrLabel18.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "chitiet.hoten") });
            this.xrLabel18.LocationFloat = new PointFloat(65.625f, 51.00001f);
            this.xrLabel18.Name = "xrLabel18";
            this.xrLabel18.Padding = new PaddingInfo(2, 2, 0, 0, 96f);
            this.xrLabel18.SizeF = new SizeF(255.2084f, 23f);
            this.xrLabel18.Text = "xrLabel18";
            this.xrLabel19.LocationFloat = new PointFloat(0f, 51.00001f);
            this.xrLabel19.Name = "xrLabel19";
            this.xrLabel19.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel19.SizeF = new SizeF(65.625f, 23f);
            this.xrLabel19.Text = "Họ v\x00e0 t\x00ean:";
            this.xrLabel20.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "chitiet.diachi") });
            this.xrLabel20.LocationFloat = new PointFloat(65.625f, 74.00001f);
            this.xrLabel20.Name = "xrLabel20";
            this.xrLabel20.Padding = new PaddingInfo(2, 2, 0, 0, 96f);
            this.xrLabel20.SizeF = new SizeF(443.3747f, 23f);
            this.xrLabel20.Text = "xrLabel20";
            this.xrLabel21.LocationFloat = new PointFloat(3.178914E-05f, 74.00001f);
            this.xrLabel21.Name = "xrLabel21";
            this.xrLabel21.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel21.SizeF = new SizeF(65.625f, 23f);
            this.xrLabel21.Text = "Địa chỉ:";
            this.xrLabel22.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "chitiet.gioitinh") });
            this.xrLabel22.LocationFloat = new PointFloat(359.375f, 51.00001f);
            this.xrLabel22.Name = "xrLabel22";
            this.xrLabel22.Padding = new PaddingInfo(2, 2, 0, 0, 96f);
            this.xrLabel22.SizeF = new SizeF(47.5415f, 23f);
            this.xrLabel22.Text = "xrLabel22";
            this.xrLabel23.LocationFloat = new PointFloat(320.8333f, 51.00001f);
            this.xrLabel23.Name = "xrLabel23";
            this.xrLabel23.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel23.SizeF = new SizeF(38.54169f, 23f);
            this.xrLabel23.Text = "Ph\x00e1i:";
            this.xrLabel24.Font = new Font("Times New Roman", 9f);
            this.xrLabel24.LocationFloat = new PointFloat(406.9166f, 51.00001f);
            this.xrLabel24.Name = "xrLabel24";
            this.xrLabel24.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel24.SizeF = new SizeF(59.37494f, 23f);
            this.xrLabel24.StylePriority.UseFont = false;
            this.xrLabel24.Text = "Năm sinh:";
            this.xrLabel25.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "chitiet.namsinh") });
            this.xrLabel25.LocationFloat = new PointFloat(466.2916f, 51.00001f);
            this.xrLabel25.Name = "xrLabel25";
            this.xrLabel25.Padding = new PaddingInfo(2, 2, 0, 0, 96f);
            this.xrLabel25.SizeF = new SizeF(42.70819f, 23f);
            this.xrLabel25.Text = "xrLabel25";
            base.Bands.AddRange(new Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.ReportFooter, this.PageHeader });
            base.Margins = new Margins(0x21, 0x1f, 0x68, 0x65);
            base.PageHeight = 0x33b;
            base.PageWidth = 0x247;
            base.PaperKind = PaperKind.A5;
            base.Version = "12.2";
            this.XmlDataPath = @"F:\Project\phongmach_2012\QLPhongMach\QLPhongMach\bin\Debug\d_inphieuxuatban.xml";
            base.PrintProgress += new PrintProgressEventHandler(this.repx_d_in_phieuxuatban_PrintProgress);
            this.EndInit();
        }

        public void Load(DataSet ds)
        {
            base.DataSource = ds;
            base.RequestParameters = false;
        }

        private void repx_d_in_phieuxuatban_PrintProgress(object sender, PrintProgressEventArgs e)
        {
            this.iPrinted++;
        }
    }
}

